package com.fuelindustries.ant.utils;

public class OSUtils 
{
	
	public static String WINDOWS = "WINDOWS";
	public static String MAC = "MAC";
	public static String OTHER = "OTHER";
	
	public static String getOS()
	{
		if( isWindows() ) return WINDOWS;
		if( isMac() ) return MAC;
		
		return OTHER;
	}
	
	public static boolean isWindows()
	{	 
		String os = System.getProperty("os.name").toLowerCase();
	    return (os.indexOf( "win" ) >= 0); 
	}
 
	public static boolean isMac()
	{
		String os = System.getProperty("os.name").toLowerCase();
	    return (os.indexOf( "mac" ) >= 0); 
	}
}
